/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOSINTERNACAO")
public class TiposInternacaoProteu {

    @Id
    @Column(name="TPI_IN_CODIGO")
    private Integer tpiInCodigo;
    @Column(name="TPI_ST_DESCRICAO")
    private String tpiStDescricao;

    public Integer getTpiInCodigo() {
        return tpiInCodigo;
    }

    public void setTpiInCodigo(Integer tpiInCodigo) {
        this.tpiInCodigo = tpiInCodigo;
    }

    public String getTpiStDescricao() {
        return tpiStDescricao;
    }

    public void setTpiStDescricao(String tpiStDescricao) {
        this.tpiStDescricao = tpiStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TiposInternacaoProteu other = (TiposInternacaoProteu) obj;
        if (this.tpiInCodigo != other.tpiInCodigo && (this.tpiInCodigo == null || !this.tpiInCodigo.equals(other.tpiInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.tpiInCodigo != null ? this.tpiInCodigo.hashCode() : 0);
        return hash;
    }



}
